package com.yfqy.admin.domain.entity;

import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 库存量单位表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ProductSku {

    /**
     * SKU ID
     */
    private Long id;

    /**
     * SKU编码
     */
    private String skuCode;

    /**
     * SPU ID
     */
    private Long spuId;

    /**
     * 规格属性(JSON格式)
     */
    private String specs;

    /**
     * 销售价
     */
    private BigDecimal price;

    /**
     * 市场价
     */
    private BigDecimal marketPrice;

    /**
     * 成本价
     */
    private BigDecimal costPrice;

    /**
     * 库存
     */
    private Integer stock;

    /**
     * 库存预警值
     */
    private Integer warnStock;

    /**
     * SKU主图，为空时展示SPU主图
     */
    private String image;

    /**
     * 状态(0禁用1启用)
     */
    private Byte status;

    private Long createdBy;

    private Date createdTime;

    private Long modifiedBy;

    private Date modifiedTime;
}